package com.feign.hystrix;

import com.domain.UserInfo;
import com.feign.UserInfoFeignApi;
import com.util.JsonResult;
import org.springframework.stereotype.Component;

@Component
public class UserInfoFeignHystrix implements UserInfoFeignApi {
    @Override
    public JsonResult get(String id) {
        System.out.println("出问题啦，走降级方法啦..UserInfoFeignHystrix.get..");
        return null;
    }

    @Override
    public JsonResult checkPhone(String phone) {
        System.out.println("出问题啦，走降级方法啦..UserInfoFeignHystrix.checkPhone..");
        return null;
    }

    @Override
    public JsonResult regist(String phone, String nickname, String password, String rpassword) {
        System.out.println("出问题啦，走降级方法啦..UserInfoFeignHystrix.regist..");
        return null;
    }
}